<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<%@ page import="com.msmall.base.util.ConstantDB" language="java"%>
<div class="k_showshare">
	<c:choose>
		<c:when test="${not empty articleViewFooterPre}">
			上一篇：
			<a href="<c:url value='/klg/article/viewArticle.do?articleid=${articleViewFooterPre.articleid}'/>">
				<c:out value="${articleViewFooterPre.title}"></c:out>
			</a>
		</c:when>
	</c:choose>
	&nbsp;&nbsp;&nbsp;
	<c:choose>
		<c:when test="${not empty articleViewFooterNext}">
		下一篇：
			<a href="<c:url value='/klg/article/viewArticle.do?articleid=${articleViewFooterNext.articleid}'/>">
				<c:out value="${articleViewFooterNext.title}"></c:out>
			</a>
		</c:when>
	</c:choose>
</div>

<c:choose>
	<c:when test="${not empty articleViewFooterRelations}">
		<div class="k_showcont martop10">
			<div class="k_showcontnav">
				<p class="k_showcontnavbg">相关文章</p>
			</div>
		</div>
		<div class="k_showcomm">
			<ul class="k_showcommul">
				<c:set var="articleRelationsCount" value="0"></c:set>
				<c:forEach var="article" items="${articleViewFooterRelations}" varStatus="status">
					<c:set var="articleRelationsCount" value="${articleRelationsCount + 1}"></c:set>
					<c:if test="${articleRelationsCount <= 6}">
						<li>
							<span class="fl">
								<a class="lH33" href="<c:url value='/klg/article/viewArticle.do?articleid=${article.articleid}'/>">
									<c:out value="${article.title14}"></c:out>
								</a>
							</span>
							<span class="fr s666"><fmt:formatDate value="${article.createTime}" pattern="yyyy-MM-dd"/></span>
						</li>
					</c:if>
				</c:forEach>
			</ul>
		</div>
	</c:when>
</c:choose>
		